package club.zhilin.guli.service.statistics.feign;

import club.zhilin.guli.common.base.result.CommonResult;
import club.zhilin.guli.service.statistics.feign.impl.IEduCourseServiceImpl;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhilin
 * @since 2022/3/6 14:29
 */
@FeignClient(value = "service-edu")
@SentinelResource(fallbackClass = IEduCourseServiceImpl.class)
public interface IEduCourseService {
    /**
     * 通过日期查询课程发布数量
     *
     * @param date 日期
     * @return commonResult
     */
    @GetMapping("/admin/edu/course/course/publish/count/{date}")
    CommonResult<Integer> coursePublishCount(@PathVariable("date") String date);
}
